-- GENERATED SPELL FOR [Fear Fiend] --


function spell0_22204(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(34259,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22204', 5500, 1)
end

function spell1_22204(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(36248,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22204', 5000, 1)
end

function Sorts_22204(pUnit, Event)
local choix_sorts_22204 = math.random(0, 1)
if choix_sorts_22204 == 0 then
pUnit:RegisterEvent('spell0_22204', 1, 1)
end
if choix_sorts_22204 == 1 then
pUnit:RegisterEvent('spell1_22204', 1, 1)
end
end

function mob22204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22204', math.random(1500, 3000), 1)
end

function mob22204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22204, 1, 'mob22204_Action')
RegisterUnitEvent(22204, 2, 'mob22204_Leave')
RegisterUnitEvent(22204, 3, 'mob22204_Kill')
RegisterUnitEvent(22204, 4, 'mob22204_Die')
